package cn.tedu.api;

import java.util.Date;

//测试 日期工具类
public class Test2_Date {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date.getDate());
        System.out.println(date.getDay());
        System.out.println(date.getHours());
        System.out.println(date.getMinutes());
        System.out.println(date.getMonth()+1);
        System.out.println(date.getSeconds());
        System.out.println(date.getTime());
        System.out.println(date.getYear());
        System.out.println(date.toLocaleString());
    }
}
